const CREATE = 0b0001;
const DELETE = 0b0010;
const UPDATE = 0b0100;
const DETAIL = 0b1000;

//多个组合
let res = CREATE | DELETE | UPDATE | DETAIL;
//判定
let hasPer = (res & CREATE) === CREATE;
//1001
//0010
//0000
